package cn.openea.perpartner.meily.scheduledtasks.customer;

import cn.openea.perpartner.meily.web.mapper.CustomerMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author ysk
 * @version 1.0.1
 * @Description 用户个人信息同步微信订阅
 * @createTime 2023年05月24日 19:26:00
 */
@Slf4j
@Component
public class SyncCustomerSubscribeWxTask {

    @Resource
    private CustomerMapper customerMapper;

    /**
     * 同步业务状态
     * 每天凌晨3点执行
     */
    @Scheduled(cron = "0 0 3 * * ?")
    public void customerSubscribeWxSync() {
        log.info("customer subscribe wx sync business status start execution");
        customerMapper.syncWxSubscribe();
    }

}
